//
//  HUDLayer.h
//  SpeedTap
//
//  Created by Chi Ho Chiu on 21/8/11.
//  Copyright 2011 Individual. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"

@protocol HUDLayerDelegate
-(void) timesUp;
@end

@interface HUDLayer : CCLayerColor {
    id delegate;
	float totalTime;
	float remainingTime;
    
    CCLabelBMFont *timeLeftLabel;	//Fixed Label
	CCSprite *timeBarSprite;	//Whole time bar container
	CCSprite *timeLeftSprite;	//The red bar remaining time bar
}
@property (nonatomic) float totalTime;
@property (nonatomic) float remainingTime;
@property (nonatomic, retain) CCLabelBMFont *timeLeftLabel;
@property (nonatomic, retain) CCSprite *timeBarSprite;
@property (nonatomic, retain) CCSprite *timeLeftSprite;
@property (assign) id<HUDLayerDelegate> delegate;

typedef enum
{
    kHUD_TAG_EXIT = 0
} EHUDTag;

@end
